$(
    async function () {
        let id=new  URLSearchParams(window.location.search).get("id")
        console.log(id);
        
        let res=await axios.get(`http://localhost:5000/book/${id}`)
        let book=res.data.data
        $(`[name="bookName"]`).val(book.bookName)
        $(`[name="bookPirce"]`).val(book.bookPirce)
        $(`[name="bookAuthor"]`).val(book.bookAuthor)
        console.log(`   $(`[name="bookName"]`).val(book.bookName)
        $(`[name="bookPirce"]`).val(book.bookPirce)
        $(`[name="bookAuthor"]`).val(book.bookAuthor)`);
        
    }
)
